/**
 * 
 */
(function(window, undefined) {
    if(window.Nweb !== undefined) {
        throw new Error('Nweb library already loaded');
    }

    var global = window;
    var Nweb = {
        version: '0.1'
    };
    
    Nweb.def = Nweb.define = function (name, config) {
        var current = window;
        var pieces  = name.split('.');
        for(var key in pieces) {
            if(!current[pieces[key]]) {
                current[pieces[key]] = {};
            }
            current = current[pieces[key]];
        }
        //current = config;
        //console.log(current = config);
    };
    window.Nweb = Nweb;
})(window);